<!-- $Id: link_info.htm 16752 2009-10-20 09:59:38Z wangleisvn $ -->
{include file="pageheader.htm"}
<div class="main-div">
<form action="friend_link.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
<table width="100%" id="general-table">
  <tr>
    <td class="label">寺庙名称</td>
    <td>
      <input type="text" name="link_name" value="{$link_arr.link_name|escape:html}" size="30"  />
    </td>
  </tr>
 <!--  <tr>
    <td class="label">官方网站</td>
    <td>
      <input type='text' name='link_url' value='{$link_arr.link_url}' size="30"  />
    </td>
  </tr>
  <tr>
    <td class="label">联系电话</td>
    <td>
      <input type='text' name='show_order' {if $link_arr.show_order} value="{$link_arr.show_order}" {else} value="" {/if} size="30"  />
    </td>
  </tr>
  
   <tr>
    <td class="label">email</td>
    <td>
      <input type='text' name='email'  value="{$link_arr.email}"  size="30"  />
    </td>
  </tr> -->
  
 
  
   <tr>
    <td class="label">寺庙介绍</td>
    <td>
      <textarea name='lianxi' id="lianxi" value="{$link_arr.lianxi}" /></textarea>
    </td>
  </tr>
  
   <!-- <tr>
    <td class="label">状态</td>
    <td>
		<select name="show_order">
		  <option value ="0">当前祈福</option>
		  <option value ="1" {if $link_arr.show_order} selected {/if}>往期回顾</option>
		 
		</select>
    </td>
  </tr> -->
  
   <script>  
       document.getElementById("lianxi").value="{$link_arr.lianxi}"  
    </script>  
  

  <tr>
    <td class="label">图片</td>
    <td>
      <input type='file' name='link_img' size="35" />
    </td>
  </tr>
 

 
  <tr>
    <td class="label">&nbsp;</td>
    <td>
      <input type="submit" value="{$lang.button_submit}" class="button" />
      <input type="reset" value="{$lang.button_reset}" class="button" />
      <input type="hidden" name="act" value="{$form_act}" />
      <input type="hidden" name="id" value="{$link_arr.link_id}" />
      <input type="hidden" name="type" value="{$type}" />
    </td>
  </tr>
</table>
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
<script language="JavaScript">
<!--

{literal}
/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("link_name",      link_name_empty);
	//validator.required("link_url",       link_url_empty);
    //validator.isNumber("show_order",     show_order_type);
    return validator.passed();
}

onload = function()
{
    // 开始检查订单
    startCheckOrder();
}
{/literal}
//-->
</script>
{include file="pagefooter.htm"}